import React from 'react';

import { NavBar, Toast } from 'antd-mobile';

import './index.less';
export default function Index() {
  const back = () =>
    Toast.show({
      content: '点击了返回区域',
      duration: 1000,
    });
  return (
    <div>
      <NavBar back="Back" onBack={back}>
        Musk Empire
      </NavBar>
    </div>
  );
}
